<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>搜索</title>
    <link rel="stylesheet" href="./font_fenlei/iconfont.css">
    <style>
      
        .top{
            background-color: rgb(254, 139, 170);        
            height: 200px;
            display: flex;  
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 10;
        }

         .top a{
            font-size: 60px;
            text-decoration: none;
            margin-left: 10px;
            margin-top: 80px;
            color: white;
        }
        .top span{ 
            font-size: 50px;
            margin-left: 40px;
        }
         .top h2{
            font-size: 30px;
            margin-left: 20px;
            margin-top: 100px;
        }
        .top input{
            height: 60px;
            border-radius: 50px;
            background-color: white;
            border: none;
            font-size: 40px;
            margin-top: 5px;
        }
        .top input::-webkit-input-placeholder{
            color: rgb(206, 198, 198);
            font-size: 30px;
            top: 10px;
            left: 10px;
        }
        .top>div{
            display: flex;
            background-color: white;
            height: 70px;
            margin-top: 90px;
            margin-left: 30px;
            border-radius: 50px;
            padding-right: 20px;
            
        }
        .icon-saomiao{
            font-size: 60px;
            color: rgb(238, 225, 225);
            margin-top: 100px;
        }
        .icon-fangdajing{
           margin-top: 10px;
           color: rgb(175, 174, 174);
        }
        .icon-zhaoxiangji{
            margin-top: 10px;
            color: rgb(160, 157, 157);
            
        }
        .icon-xiaoxi{
            margin-top: 100px;
            color: rgb(238, 225, 225);
            margin-left: -10px;
        }

        .lishi{
            margin-top: 250px;
            z-index: 3;
        }
        .lishi li{
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            margin-top: 50px;
           
        }
        .lishi span{
         
            font-size: 30px;
            margin-left: 30px;
            background-color: rgb(245, 242, 247);
            border: 1px solid;
            padding: 20px;
            border-radius: 50px;
            
        }
        .q{
            margin-top: 60px;
        }
        .ssfx{
            margin-top: 50px;
        }
        .ssfx>span{
            font-size: 50px;
            margin-top: 50px;
            margin-left: 60px;
        }
        .ssfx li{
            list-style: none;
            display: flex;
        }
        .w{
            margin-top: 60px;
        }
        .w h2{
            margin-left: 80px;
            font-size: 40px;
            margin-top: 90px;
            
        }             
       
        .q h2{
            font-size: 40px;
          margin-top: 90px;
            margin-left: 60px;
        }


    </style>
</head>
<body>
    <div class="top">
        <span class="iconfont icon-saomiao"></span>
        <div>
       
            <span class="iconfont icon-fangdajing"></span>
            <input type="search" placeholder="烧烤炉" id="search" name="search" >
            <span class="iconfont icon-zhaoxiangji"></span>
        </div>
      <!--   <span class="iconfont icon-xiaoxi"></span>     -->  
           <h2>搜索</h2>
</div>

    <ul class="lishi">
        <h2>搜索发现</h2>

    </ul>
    <div class="ssfx">
        <span>搜索发现</span>
        <span>|</span>
        <span>热搜榜</span>
    </div>


    <script>
        var lishi1=[{
            ipad:"ipad",
            apple:"apple",
            yamaha:"雅马哈",
            huasuo:"华硕飞行堡垒7",
            huasuo1:"华硕飞行堡垒8代i7",
            huasuo2:"华硕飞行堡垒8",
            xia:"⬇"
        }]

        var lishi=document.querySelector(".lishi");
        for(var i=0;i<lishi1.length;i++){
            var li=document.createElement("li");
            li.innerHTML=`
            <div>
            <span>${lishi1[i].ipad}</span>
            <span>${lishi1[i].apple}</span>
            <span>${lishi1[i].yamaha}</span>
            <span>${lishi1[i].huasuo}</span>
         
            </div>
            <div class="q">
            <span>${lishi1[i].huasuo1}</span>
            <span>${lishi1[i].huasuo2}</span>
            <span>${lishi1[i].xia}</span>
            </div>
            `;
            lishi.appendChild(li);
        }
/////////////// 搜索发现 //////////////
           var data=[{
            pb:"平板电脑",
            z:"Z世代太空创享日",
            bp:"爆品好物5折抢",
            pg:"苹果13",
            ip:"iphon13",
            jd:"京东小魔方新品",
            ip1:"ipad2021",
            pb1:"平板电脑苹果pro",
            gs:"高刷手机",
            bjb:"笔记本电脑",
        }]

        ///  


        var ssfx=document.querySelector(".ssfx");
        for(var j=0;j<data.length;j++){
            var li1=document.createElement("li");
            li1.innerHTML=`
            <div class="w">
            <h2>${data[j].pb}</h2>
            <h2>${data[j].z}</h2>
            <h2>${data[j].bp}</h2>
            <h2>${data[j].pg}</h2>
            <h2>${data[j].ip}</h2>
            </div>
            <div class="q">
                <h2>${data[j].jd}</h2>
                <h2>${data[j].ip1}</h2>
                <h2>${data[j].pb1}</h2>
                <h2>${data[j].gs}</h2>
                <h2>${data[j].bjb}</h2>
            </div>
            `;
            ssfx.appendChild(li1);
        }


    </script>
</body>
</html>